class CreateImages < ActiveRecord::Migration
  def self.up
    create_table :images do |t|
      t.column :game_id , :integer, :limit => 8
      t.column :small ,   :string,  :limit => 255                    #小图片地址
      t.column :big,      :string,  :limit => 255                    #大图片地址
      t.column :sequence, :integer, :limit => 5, :default => 1000    #图片顺序
    end
  end

  def self.down
    drop_table :images
  end
end
